package top.lgd.pojo.entity.study;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;

/**
 * 学习目录表
 *
 * @author YYJ
 * @version 1.0
 * @since 2023/12/16 11:20
 */
@Getter
@Setter
@TableName("study_catalog")
public class Catalog extends LgdEntity {

    private static final long serialVersionUID = -6926716272077542093L;

    /**
     * 父ID
     * Index
     */
    private Long parentid;

    /**
     * 祖级ID
     * Index
     */
    @Size(max = 256)
    private String ancestors;

    /**
     * 名称
     */
    @Size(max = 16)
    private String name;

    /**
     * 排序
     */
    private Integer sortNum;
}
